const fs = require("fs");
window.addEventListener("load", () => {
  let btn = document.getElementById("btn");
  let dv = document.getElementById("dv");
  btn.addEventListener("click", () => {
    fs.readFile("xiaojiejie.txt", (err, data) => {
      if (err) return;
      dv.innerHTML = data;
    });
  });
});